< previous page page_872 next page >

Page 872
Type.gifListing A.3. Adding code to the Form_Resize event.
Private Sub Form_Resize()
   '
   If Me.WindowState <> 1 Then
      With DBGrid1
        .Width = Me.ScaleWidth
        .Left = 1
        .Top = 1
        .Height = Me.ScaleHeight
      End With
   End If
   '
End Sub
After you have entered these pieces of code, save the form as SQLVBCHI.FRM. It's a good idea to save the project at this time, too.
Creating the SQLVBAbout Form
The last form you need for this project is the SQLVBAbout form. This is the form that lists the name and version of the program and its authors, and so on. Use Table A.5 and Figure A.4 as guides as you create this form for your project.
0872-01.jpg
Figure A.4.
Laying out the SQLVBAbout form.
Table A.5. Visual Basic controls for the SQLVBAbout form.
ControlPropertySetting
VB.FormNamefrmAbout
BorderStyle3 'Fixed Dialog
Caption"About MyApp"

(table continued on next page)

 
< previous page page_872 next page >

If you like this book, buy it!